Skip to content

Combine #4537 and #4463 for MiniMax-M3.1-Flash MI355X vLLM: K7 at C16/C32, CPU offload at C64 / 合并 #4537 与 #4463:MiniMax-M3.1-Flash MI355X vLLM C16/C32 使用 K7、C64 使用 CPU 卸载 - #4671

Merged
Fangzhou-Ai merged 5 commits into
mainfrom
amd/mm31flash-mi355x-vllm-combine-4537-4463
Nov 2, 2026
Merged

Fangzhou-Ai merged 5 commits into
mainfrom
amd/mm31flash-mi355x-vllm-combine-4537-4463

Conversation

@Fangzhou-Ai

@Fangzhou-Ai Fangzhou-Ai commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Combines #4537 (C16/C32) and #4463 (C64 CPU KV offload) for minimaxm31flash-fp4-mi355x-vllm-agentic-dspark. It stays on the Quark checkpoint amd/MiniMax-M3.1-Flash-Quark-MXFP4 and the unchanged image vllm/vllm-openai-rocm:minimax-m31-flash (vLLM 0.32.0rc1.dev364+g8d0f05a0c).

conc setting from
C1-C8 DSpark 7 + mono decode, FP8 KV, 0.85 unchanged
C16/C32 DSpark 3 → 7, DBO, NVFP4 KV, 0.9 → 0.85, admission 2x CONC #4537
C64 DSpark 3 + DBO, 0.90, max-num-seqs 128, SimpleCPUOffloadConnector (eager, 1349 GB host), PYTHONHASHSEED=42, VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1 #4463

The master config splits the search space into TP4 c1-c32 without offloading and TP4 c64 with DRAM offload (vllm-simple, agentic.yaml:override_tp4_dspark3_c64_offload), and raises dram-utilization from 0.80 to 0.90.

Notes:

This PR does not automatically supersede either source PR; close or rebase them as appropriate.

Validation

  • Sweep run 41003224750 on head a328b4435 passed: agentic c1, c2, c4, c8, c16, c32 and c64 (DRAM offload), plus evals at c8, c32 and c64.
中文

摘要

为 minimaxm31flash-fp4-mi355x-vllm-agentic-dspark 合并 #4537(C16/C32)与 #4463(C64 CPU KV 卸载),仍使用 Quark 检查点 amd/MiniMax-M3.1-Flash-Quark-MXFP4,镜像 vllm/vllm-openai-rocm:minimax-m31-flash 不变(vLLM 0.32.0rc1.dev364+g8d0f05a0c)。

并发 配置 来源
C1-C8 DSpark 7 + mono decode,FP8 KV,0.85 不变
C16/C32 DSpark 3 → 7,DBO,NVFP4 KV,0.9 → 0.85,准入 2 倍 CONC #4537
C64 DSpark 3 + DBO,0.90,max-num-seqs 128,SimpleCPUOffloadConnector(eager,1349 GB 主机内存),PYTHONHASHSEED=42,VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1 #4463

主配置将搜索空间拆分为无卸载的 TP4 c1-c32 与使用 DRAM 卸载的 TP4 c64(vllm-simple,agentic.yaml:override_tp4_dspark3_c64_offload),dram-utilization 由 0.80 提高到 0.90。

说明:

本 PR 不会自动取代两个源 PR,请视情况关闭或 rebase。

验证

  • 在 head a328b4435 上的 sweep 运行 41003224750 通过:agentic c1、c2、c4、c8、c16、c32 与 c64(DRAM 卸载),以及 c8、c32、c64 的评测。
AI model disclosure
  • Model/version: claude-sonnet-5-5 (Claude Sonnet 5.5)
  • Role: combined the two PRs' recipe/config changes, changelog entry, and PR text.
  • Model/version: claude-opus-5-5 (Claude Opus 5.5)
  • Role: rewrote the changelog block and PR description from the diff, checked SP prefill gating and draft data types at vLLM 8d0f05a0c, and traced the KV capacity numbers to run 41003224750.

🤖 Generated with Claude Code

…CPU offload

合并 #4537(c16/c32 使用 K7、0.85 显存)与 #4463(c64 CPU KV 卸载),保持 Quark 检查点。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Fangzhou-Ai Fangzhou-Ai added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 30, 2026
@Fangzhou-Ai
Fangzhou-Ai requested a review from a team October 30, 2026 03:36
@Fangzhou-Ai Fangzhou-Ai added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 30, 2026
将 MiniMax-M3.1-Flash 合并条目链接到 PR 4671。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment on lines +145 to +147
# Sequence-parallel prefill, from #4463. Upstream (vllm#63491) supports
# the MXFP4 W4A4 MoE; whether the Quark export's dense layers reach its
# MXFP8 kernel is untested, so this arm is the first check.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 nit (optional): The new recipe comments record PR history and testing status, which AGENTS.md's comment rules ban. sweep:#4463|#4537|first check Example: agentic.yaml:145-147 says "Sequence-parallel prefill, from #4463" and "this arm is the first check". Fix: cut these comments down to short technical notes on the line they sit above. Leave PR provenance and validation status in perf-changelog.yaml, which already records them.

Why this was flagged

AGENTS.md (Comments, mandatory) bans history comments, meaning how code evolved, where it came from, or past results, and names git and perf-changelog.yaml as the record. The comment this diff adds at agentic.yaml:145-147 cites #4463 as the source of the setting. It also calls the arm "the first check" of an untested path. Once a sweep runs, that note goes stale and still sits in the recipe. The perf-changelog.yaml block added by this same diff already carries the #4463/#4537 provenance and the untested-on-Quark caveat.

Verification: The diff adds a comment to agentic.yaml at lines 145-147, in override_tp4_dspark3_c64_offload, reading "from #4463" and "this arm is the first check". AGENTS.md:54-58 says: "No history: how code evolved, what it replaced, where it came from, or past results. Git and perf-changelog.yaml are the record." Nothing breaks at runtime.

@Fangzhou-Ai Fangzhou-Ai added full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures and removed full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) labels Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

@Fangzhou-Ai

Fangzhou-Ai commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Upstream vLLM recipe PR for this lane: vllm-project/vllm#64805 (adds the mi355x_agentx preset to the MiniMax-M3.1-Flash recipe). Still open; the checklist requires it to be MERGED before this PR merges.

中文

本 lane 对应的上游 vLLM recipe PR:https://github.com/vllm-project/vllm/pull/64805(在 MiniMax-M3.1-Flash recipe 中新增 mi355x_agentx preset)。目前仍为 open;检查清单要求其在本 PR 合并前已 MERGED。

@seungrokj

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run 41003224750

seungrokj and others added 2 commits October 30, 2026 13:27
…e diff

- Image unchanged: vllm/vllm-openai-rocm:minimax-m31-flash (vLLM 0.32.0rc1.dev364+g8d0f05a0c) on amd/MiniMax-M3.1-Flash-Quark-MXFP4, so no upstream framework change.
- Search space: TP4 c1-c32 without KV offloading, and c64 moves to a new TP4 point with host-DRAM KV offload (vllm-simple); dram-utilization 0.80 -> 0.90.
- C1-C8 are unchanged.
- C16/C32: DSpark 3 -> 7 on the NVFP4 KV cache with DBO; base gpu-memory-utilization 0.9 -> 0.85. The golden AL covers 7 drafts.
- C64: DSpark 3 at 0.9, max-num-seqs 128, SimpleCPUOffloadConnector (eager, 1349 GB): about 23.7M CPU tokens beside the 14.6M-token GPU KV cache in run 41003224750.
- C64 also sets PYTHONHASHSEED=42 and VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1; SP prefill stays off on the Quark checkpoint at 8d0f05a0c, and every rank logs it as off.
- Draft data types unchanged: the dspark/ draft runs with its own MXFP8 config and an FP8 draft KV cache; only its length changes, at C16/C32.

- 镜像不变:vllm/vllm-openai-rocm:minimax-m31-flash(vLLM 0.32.0rc1.dev364+g8d0f05a0c),检查点 amd/MiniMax-M3.1-Flash-Quark-MXFP4,无上游框架变化。
- 搜索空间:TP4 c1-c32 不卸载 KV;c64 改为新的 TP4 主机 DRAM KV 卸载点(vllm-simple);dram-utilization 0.80 -> 0.90。
- C1-C8 不变。
- C16/C32:在 NVFP4 KV 缓存与 DBO 上 DSpark 3 -> 7;基础 gpu-memory-utilization 0.9 -> 0.85。golden AL 覆盖 7 个草稿 token。
- C64:DSpark 3,显存 0.9,max-num-seqs 128,SimpleCPUOffloadConnector(eager,1349 GB):运行 41003224750 中,在 14.6M token 的 GPU KV 缓存之外另有约 23.7M token 的 CPU 缓存。
- C64 还设置 PYTHONHASHSEED=42 与 VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1;在 8d0f05a0c 上 Quark 检查点的 SP 预填充保持关闭,每个 rank 均记录为 off。
- 草稿模型数据类型不变:dspark/ 草稿按其自身的 MXFP8 配置运行,草稿 KV 缓存为 FP8;仅 C16/C32 的草稿长度变化。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seungrokj

seungrokj commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Draft data types: no change. The DSpark draft (language_model.model.dspark.* in amd/MiniMax-M3.1-Flash-Quark-MXFP4/dspark/, a standalone 5-layer DSparkMiniMaxDraftModel with quant_method: mxfp8, weight_block_size: [1, 32]) is stored as follows (read from the safetensors header of dspark/model-dspark-00001.safetensors):

Part Data type
Attention q/k/v/o projections, dense FFN gate/up/down (5 layers) FP8 E4M3 with 1×32 UE8M0 block scales (MXFP8), dynamic activations
fc, Markov head (markov_w1/w2), confidence head BF16 (in ignored_layers)
Norms (input/post-attention, q/k, hidden, final) BF16

At vLLM 8d0f05a0c (the image's revision, 0.32.0rc1.dev364+g8d0f05a0c), SpeculativeConfig resolves the draft to the target's dspark/ subfolder (speculative.py#L99-L116). The draft builds its quant config from that checkpoint, not from the target's Quark config (qwen3_dflash.py#L460 → get_draft_quant_config). The recipe sets no draft quantization or dtype. speculative-config keeps "kv_cache_dtype":"fp8" with the TRITON_ATTN drafter, as on base, so the draft KV cache is FP8 and the draft attention takes a pre-quantized query (dspark.py#L295-L303). The draft runs as shipped, before and after this PR. The image is unchanged, and the only draft change is num_speculative_tokens 3 → 7 at C16/C32. The minimaxm31flash_dspark golden AL covers 7 (4.04).

Sign-off evidence (PR review checklist)

The CODEOWNER sign-off links this comment as its additional detail section. Evidence for each item, assessed at bed892b (head) / a328b44 (swept); the upstream recipe row was updated on 2026-11-02 after vllm-project/vllm#64805 merged:

Item Status Evidence
PR validation ✅ Run 41003224750 on a328b44: all seven points passed (TP4 c1, c2, c4, c8, c16, c32 without offload; c64 with dram / vllm-simple). Later commits change only the changelog text and merge main.
Evals ✅ Same run, agentic eval, gsm8k (1319 questions, threshold 0.9): c8 strict 0.9644 / flexible 0.9636, c32 0.9591 / 0.9583, c64 0.9568 / 0.9560.
Chat templates ✅ AgentX replays the traces through /v1/chat/completions, so the served chat template applies.
Draft precision ✅ Above: the DSpark draft runs as shipped (MXFP8 projections and FFN, BF16 fc/heads/norms) with an FP8 draft KV cache; no draft quantization or dtype override. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE does not apply (vLLM path).
Golden AL ✅ Throughput jobs inject synthetic acceptance 4.04 at k=7 (c1-c32) and 2.88 at k=3 (c64), the minimaxm31flash_dspark.yaml thinking_on values at those draft lengths.
MODELS.md ✅ minimaxm31flash (released 2026-10-23) agentic coding is active.
Architecture hacks ✅ No --hf-overrides or layer skipping. DBO and SP prefill only change scheduling and parallelism; SP prefill logs "off" on the Quark checkpoint.
Integer all-reduce ✅ Disabled: neither the recipe nor the image sets *QUICK_REDUCE_QUANTIZATION, and vLLM 8d0f05a0c defaults VLLM_ROCM_QUICK_REDUCE_QUANTIZATION to NONE (envs.py).
Dynamo TRT-LLM metrics N/A Direct vLLM serving; no Dynamo.
Upstream image / engine-first ✅ vllm/vllm-openai-rocm:minimax-m31-flash@sha256:ae868121…, from the upstream vLLM org; unchanged by this PR. vLLM is the engine itself, so ordering does not apply.
Main provenance ⚠️ new-model window The image's vLLM 8d0f05a0c is a model-enablement commit, not on vLLM main. MODELS.md allows this for new models for a reasonable time after release (2026-10-23); a later PR must move to a main nightly.
Upstream recipe ✅ vllm-project/vllm#64805 was merged on 2026-10-31 (b03e7888) and adds the mi355x_agentx preset, "AgentX TP4" (MiniMax-M3.1-Flash.yaml#L1370-L1474), now live on the published recipe. It cites this PR at a328b44, pins the same image and digest (minimax-m31-flash@sha256:ae868121…) on the mxfp4 (Quark) variant at TP4, and sets the same values per point as this recipe: c1-c8 DSpark 7 with mono decode (FP8 KV and indexer caches, FULL_DECODE_ONLY, shuffled KV layout, 0.85, 8192-token steps, no DBO); c16/c32 DSpark 7 with DBO (16384/32768 thresholds, V2 runner, DEBUG_HIP_DYNAMIC_QUEUES=0) on the NVFP4 KV cache at 0.85 with 32768-token steps; c64 DSpark 3 with DBO at 0.90, SimpleCPUOffloadConnector with 1349 GB eager (lazy_offload: false) and PYTHONHASHSEED=42; --max-num-seqs at 2× concurrency everywhere; block verification, prefix caching and VLLM_HTTP_TIMEOUT_KEEP_ALIVE=900. The shared settings come from the mxfp4 variant (L197-L218: --moe-backend aiter, no shared-expert fusion), the AMD override (L260-L268: NVFP4 KV, indexer_decode_cp), the mono-decode mode (L134-L147) and the AMD DSpark config (L67-L70: TRITON_ATTN draft attention, FP8 draft KV, probabilistic drafting). One difference: the preset omits VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1 at c64, and its runbook records that the server logged sequence-parallel prefill as off on this checkpoint, so the served configuration is the same.
Engine patches ✅ No patches, setup scripts, overlays or waivers; the pinned image runs as shipped.
Append-only N/A The changelog block does not set append-only: true.
Pareto counts ✅ 5 One curve: minimaxm31flash / agentic-coding / MI355X vLLM / fp4 / p90, run 41003224750 results_bmk: 5 measured frontier points, c4 (9493.49 tok/s/GPU, 8.804 s), c8 (15410.91, 8.871 s), c16 (27275.33, 11.127 s), c32 (54158.02, 17.127 s), c64 (75434.30, 35.023 s). c1 and c2 are dominated. The first c64 attempt hung and recorded zero throughput; it is excluded, and the passing rerun is used.
中文

草稿模型数据类型:不变。 DSpark 草稿模型(amd/MiniMax-M3.1-Flash-Quark-MXFP4/dspark/ 中的 language_model.model.dspark.*,独立的 5 层 DSparkMiniMaxDraftModel,quant_method: mxfp8,weight_block_size: [1, 32])的存储格式如下(读自 dspark/model-dspark-00001.safetensors 的 safetensors 头):

部分 数据类型
注意力 q/k/v/o 投影、稠密 FFN gate/up/down(5 层) FP8 E4M3,1×32 UE8M0 块缩放(MXFP8),动态激活
fc、Markov 头(markov_w1/w2)、置信度头 BF16(位于 ignored_layers)
各 norm(input/post-attention、q/k、hidden、final) BF16

在 vLLM 8d0f05a0c(镜像版本 0.32.0rc1.dev364+g8d0f05a0c)中,SpeculativeConfig 将草稿模型解析为目标模型的 dspark/ 子目录(speculative.py#L99-L116),草稿模型根据该检查点构建量化配置,而不是沿用目标模型的 Quark 配置(qwen3_dflash.py#L460 → get_draft_quant_config)。配方未设置草稿的 quantization 或 dtype;speculative-config 与 base 相同,保留 "kv_cache_dtype":"fp8" 和 TRITON_ATTN 草稿后端,因此草稿 KV 缓存为 FP8,草稿注意力接收预量化的 query(dspark.py#L295-L303)。本 PR 前后草稿模型均按原样运行。镜像不变,草稿唯一的变化是 C16/C32 的 num_speculative_tokens 3 → 7;minimaxm31flash_dspark golden AL 覆盖 7(4.04)。

签核证据(PR 审查清单)

CODEOWNER 签核将本评论链接为其附加说明部分。各项证据,评估于 bed892b(head)/ a328b44(扫描);上游配方一行已于 2026-11-02 在 vllm-project/vllm#64805 合并后更新:

项目 状态 证据
PR 验证 ✅ a328b44 上的运行 41003224750:七个点全部通过(TP4 c1、c2、c4、c8、c16、c32 无卸载;c64 使用 dram / vllm-simple)。之后的提交仅修改 changelog 文本并合并 main。
评测 ✅ 同一运行的 agentic eval,gsm8k(1319 题,阈值 0.9):c8 strict 0.9644 / flexible 0.9636,c32 0.9591 / 0.9583,c64 0.9568 / 0.9560。
聊天模板 ✅ AgentX 通过 /v1/chat/completions 回放 trace,使用服务端聊天模板。
草稿精度 ✅ 见上文:DSpark 草稿按原样运行(MXFP8 投影与 FFN,BF16 fc/头/norm),草稿 KV 缓存为 FP8;无草稿量化或 dtype 覆盖。SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE 不适用(vLLM 路径)。
Golden AL ✅ 吞吐任务注入合成接受长度:k=7(c1-c32)为 4.04,k=3(c64)为 2.88,即 minimaxm31flash_dspark.yaml thinking_on 在对应草稿长度的值。
MODELS.md ✅ minimaxm31flash(2026-10-23 发布)agentic coding 处于活跃状态。
架构 hack ✅ 无 --hf-overrides 或跳层。DBO 与 SP prefill 只改变调度与并行方式;在 Quark 检查点上 SP prefill 日志为 "off"。
整数 all-reduce ✅ 已禁用:配方与镜像均未设置 *QUICK_REDUCE_QUANTIZATION,vLLM 8d0f05a0c 中 VLLM_ROCM_QUICK_REDUCE_QUANTIZATION 默认为 NONE(envs.py)。
Dynamo TRT-LLM 指标 不适用 直接使用 vLLM 服务,无 Dynamo。
上游镜像 / 引擎优先 ✅ vllm/vllm-openai-rocm:minimax-m31-flash@sha256:ae868121…,来自上游 vLLM 组织;本 PR 未改动。vLLM 本身即引擎,顺序规则不适用。
main 来源 ⚠️ 新模型过渡期 镜像中的 vLLM 8d0f05a0c 是模型启用分支的提交,不在 vLLM main 上。MODELS.md 允许新模型在发布(2026-10-23)后的合理时间内如此;后续 PR 需改用 main nightly。
上游配方 ✅ vllm-project/vllm#64805 已于 2026-10-31 合并(b03e7888),新增 mi355x_agentx 预设“AgentX TP4”(MiniMax-M3.1-Flash.yaml#L1370-L1474),现已上线已发布配方。该预设引用本 PR 的 a328b44,在 mxfp4(Quark)变体、TP4 上固定相同的镜像与 digest(minimax-m31-flash@sha256:ae868121…),各点参数与本 recipe 相同:c1-c8 为 DSpark 7 + mono decode(FP8 KV 与 indexer 缓存、FULL_DECODE_ONLY、shuffled KV 布局、0.85、8192 token 步长、无 DBO);c16/c32 为 DSpark 7 + DBO(阈值 16384/32768、V2 runner、DEBUG_HIP_DYNAMIC_QUEUES=0),NVFP4 KV 缓存,0.85,32768 token 步长;c64 为 DSpark 3 + DBO、0.90,SimpleCPUOffloadConnector 1349 GB eager(lazy_offload: false),PYTHONHASHSEED=42;所有点 --max-num-seqs 均为并发的 2 倍;块验证、prefix caching 与 VLLM_HTTP_TIMEOUT_KEEP_ALIVE=900。共享设置来自 mxfp4 变体(L197-L218:--moe-backend aiter,不融合共享专家)、AMD 覆盖(L260-L268:NVFP4 KV、indexer_decode_cp)、mono decode 模式(L134-L147)以及 AMD DSpark 配置(L67-L70:草稿注意力 TRITON_ATTN、FP8 草稿 KV、概率式草稿)。唯一差异:预设在 c64 未设置 VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1,其 runbook 记录服务端日志显示该 checkpoint 上序列并行 prefill 处于关闭状态,因此实际服务配置相同。
引擎补丁 ✅ 无补丁、setup 脚本、overlay 或豁免;固定镜像按原样运行。
仅追加 不适用 changelog 条目未设置 append-only: true。
Pareto 点数 ✅ 5 一条曲线:minimaxm31flash / agentic-coding / MI355X vLLM / fp4 / p90,运行 41003224750 的 results_bmk:5 个实测前沿点,c4(9493.49 tok/s/GPU,8.804 s)、c8(15410.91,8.871 s)、c16(27275.33,11.127 s)、c32(54158.02,17.127 s)、c64(75434.30,35.023 s)。c1 与 c2 被支配。c64 首次尝试卡住且吞吐为零,已排除,使用通过的重跑结果。

@seungrokj seungrokj left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a PR reviewer and CODEOWNER, I have reviewed this and have:

Checklist items
  • Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
  • Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
  • Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this.
  • Verified that this PR passes evals.  Please link to GitHub Action workflow that shows this.
  • Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
  • Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
  • Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
  • For official InferenceX (non-preview), verified that established models use upstream engine images built from master (or the equivalent default development branch), with new models transitioning within a reasonable time after release. See MODELS.md
  • If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
  • Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
  • Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/<PR_NUMBER>.md](https://github.com/SemiAnalysisAI/InferenceX/tree/main/inferencex-e2e/docs/waiver)%60%3CPR_NUMBER%3E.md%60) — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.
  • If this PR uses append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.
  • If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details

Additional detail section:

Signed: seungrokj

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

✅✅✅ Verdict: PASS ✅✅✅

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @seungrokj is a listed owner of inferencex-e2e/configs/amd-master.yaml and of /inferencex-e2e/benchmarks/*_node/srt-slurm-recipes/**/mi355x-*/, and perf-changelog.yaml falls under the catch-all owner.

✅ Check 1 (Sweep on in-PR commit): PASS — Run 41003224750 (attempt 2, conclusion success) on in-PR commit a328b44 passed all 7 agentic / jobs (TP4 c1-c32, plus c64 dram/vllm-simple) and all 3 agentic eval / jobs. Three commits follow it and none is material: bed892b rewrites only the changelog text, and the merges 35fb02d and 8b14405 bring in main changes to other configs (qwen3.8next, musespark, NVIDIA entries), CollectiveX, OperatorX, power_model, docs, and CI/sweep-classifier prompt text. None of these reaches this config's recipe, launcher, benchmark, or eval path.

✅ Check 2 (Evals): PASS — The evals ran in the same run on vllm/vllm-openai-rocm:minimax-m31-flash@sha256:ae868121…, the image in this PR's config. gsm8k em_strict (n=1319): c8 0.9644 (SE 0.0051), c32 0.9591 (0.0055), c64 0.9568 (0.0056). The largest gap to the best sibling (c8) is 0.0076, against a 2-sigma threshold of 0.0152. Against the ingested c64 cohort (run 39929767608, 0.9666, SE 0.0049), the gap is 0.0099, against a threshold of 0.0150. The changed lanes have their own evals: c32 (K7 + DBO) and c64 (eval-only job with DRAM offload).

✅ Check 3 (Upstream recipe): PASS — vllm-project/vllm#64805 is MERGED (2026-10-31T21:22:58Z). It changes recipes/models/MiniMaxAI/MiniMax-M3.1-Flash.yaml and is live as the "AgentX TP4" mi355x_agentx preset on the published recipe. The preset matches the effective recipe at each point: the same image digest, the Quark mxfp4 variant (--moe-backend aiter, AITER MoE, no shared-expert fusion), TP4, text-only, prefix caching, and keep-alive 900. At c1-c8 it uses DSpark 7 with mono decode (FP8 KV/indexer, FULL_DECODE_ONLY, shuffled layout, 0.85, 8192-token steps). At c16/c32 it uses DSpark 7 with DBO 16384/32768, the V2 runner, DEBUG_HIP_DYNAMIC_QUEUES=0, NVFP4 KV, and 0.85. At c64 it uses DSpark 3, DBO, 0.9, SimpleCPUOffloadConnector with 1349 GB and lazy_offload: false, and PYTHONHASHSEED=42. --max-num-seqs is 2x concurrency throughout. The preset omits VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1, and its runbook documents that SP prefill logs off on this checkpoint.

✅ Check 4 (Reuse command): PASS — seungrokj (COLLABORATOR) commented /reuse-sweep-run 41003224750 on its own line, which names the Check 1 run.

✅ Check 5 (Checklist template): PASS — All 20 items in the current template, including the recipe sub-item, appear in the sign-off, and all are checked.

✅ Check 6 (Upstream image): PASS — The image is the upstream, digest-pinned vllm/vllm-openai-rocm:minimax-m31-flash, and this PR does not change it. Engine-first ordering does not apply because this is a vLLM entry. The vLLM build 0.32.0rc1.dev364+g8d0f05a0c is a model-enablement build. That is allowed temporarily for minimaxm31flash, a new model released 2026-10-23, so a later PR must move it to a default-branch image.

✅ Check 7 (Deprecated models): PASS — MODELS.md lists minimaxm31flash (released 2026-10-23) agentic coding as active, with no deprecation notice.

✅ Check 8 (No arch hacks): PASS — There are no --hf-overrides, model-file edits, or layer/indexer skipping. DBO, the CPU KV tier, and the no-op SP prefill env only change scheduling and caching, and the NVFP4-KV lanes have eval coverage at c32 and c64. Integer all-reduce: nothing in the recipe or server logs sets *QUICK_REDUCE_QUANTIZATION, and vLLM 8d0f05a0c defaults VLLM_ROCM_QUICK_REDUCE_QUANTIZATION to NONE (envs.py L1405-1409).

✅ Check 9 (Chat template): PASS — AgentX replays traces through /v1/chat/completions, so the served chat template applies to every DSpark point.

✅ Check 10 (No engine patches): PASS — The pinned recipe has no patches, setup scripts, overlays, or wheel installs, so the pinned image runs as shipped.

✅ Check 11 (Golden AL): PASS — infx/srt_slurm/synthetic_acceptance.py replaces block rejection with synthetic acceptance on throughput runs. minimaxm31flash_dspark.yaml (thinking_on) gives 4.04 at k=7 (c1-c32) and 2.88 at k=3 (c64), and the c64 submission in run 41003224750 shows synthetic_acceptance_length: 2.88.

✅ Check 13 (Draft precision): PASS — The draft is the checkpoint's own dspark/ head (MXFP8 attention/FFN projections, BF16 fc/heads/norms), loaded through vLLM's draft quant config with no draft quantization or dtype override. Its FP8 draft KV is unchanged from base and at or above the target KV dtype. The only draft change is k 3 to 7 at c16/c32. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not set and is not read on this vLLM path.

✅ Check 14 (Pareto coverage): PASS — There is one curve: minimaxm31flash / agentic-coding / MI355X vLLM / fp4 / p90 E2EL, from run 41003224750 bmk_agentic_* at a328b44, with c64 from attempt 2 (the attempt-1 artifact had 0 successful requests and is excluded). It has 5/5 frontier points: c4 (8.80 s, 9493), c8 (8.87 s, 15411), c16 (11.13 s, 27275), c32 (17.13 s, 54158), and c64 (35.02 s, 75434). c1 and c2 are dominated.

✅ Check 15 (PR description): PASS — The body's claims match the pinned code and run 41003224750: the image and checkpoint, the per-concurrency settings, the master search-space split, dram-utilization 0.90, SP prefill being off, and validation on a328b44.

✅ Check 18 (Recipe/image consistency): PASS — agentic.yaml:override_tp4_dspark3_c64_offload resolves, and there are no generation errors. TP4/4 GPUs, concurrency, and DRAM sizing agree between master and recipe. There are no new images, orchestration pins, or dispatch. The changelog description matches the diff. Each removed point is dominated by its replacement in tput/GPU and mean interactivity: c16 25978/185.5 → 27275/222.7, c32 49697/130.9 → 54158/159.2, and c64 63261/50.5 → 75434/65.0.

➖ Check 12 (Append-only): N/A — The new changelog entry does not set append-only: true.

➖ Check 16 (NVIDIA overview): N/A — Only MI355X is affected; no NVIDIA configurations are.

➖ Check 17 (Metrics publication): N/A — This is direct vLLM serving with no Dynamo or TRT-LLM, so these Dynamo settings do not apply.

Assessed commit: 8b144057f7b2d3be0d6457ed329b9e8f40c70c65.

@Fangzhou-Ai
Fangzhou-Ai merged commit 0fc472d into main Nov 2, 2026
34 checks passed
@Fangzhou-Ai
Fangzhou-Ai deleted the amd/mm31flash-mi355x-vllm-combine-4537-4463 branch November 2, 2026 05:25
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 7 0 1 0 0
eval 3 3 3 0 0
trace 7 0 0 0 0
power 6 0 0 1 1

benchmarkFiles 8, rawBenchmarkRows 8, coveredByPerJobFiles 0, purgedPoints 0, failedRunRows 1, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 3957, gpuMetricSamplesNew 108792, powerPublicationPoints 7, changelogEntriesWritten 1

Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun.

中文

Ingest 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants